// created on 06/04/2006 at 22:44
using System;
using Gtk;
using GtkSharp;
using Hildon;

public class AboutWindow : Gtk.Dialog
{
	public AboutWindow ()
	{
		this.Title="About";
		
		// Create HBox to containt the several parts of the message
		HBox hbox=new HBox();
		VBox.Spacing=15;
		Image imgLogo=new Image();
		imgLogo.FromPixbuf = new Gdk.Pixbuf(null,"MonkeysMemory_small.png");
		imgLogo.Xpad=10;
		imgLogo.Ypad=10;
		hbox.Add(imgLogo);

		Pango.FontDescription fd=Pango.FontDescription.FromString("Arial 12");
		Label label=new Label("Monkey's Memory\n\n"+
		                      "This software is developed under the GPL licence by\n"+
		                      "Torello Querci\n"+
		                      "2006 - 2007\n\n"+
		                      "Special Greetings to Salvatore Scarciglia\n"+
		                      "for the Logo\n"+
		                      ", Massimiliano Mantione for the moral support\n"+
		                      "and Everaldo Canuto per the support to the N770-N800 porting.");
		label.ModifyFont(fd);
		label.Justify=Justification.Center;
		label.Xpad=10;
		label.Ypad=10;
		label.Selectable=false;
		
		hbox.Add(label);
		this.VBox.Add(hbox);
		
		// Create the region where insert Push Button 			
		HButtonBox bbox=new HButtonBox();
		bbox.Spacing=6;
		bbox.BorderWidth=6;
		bbox.Layout=Gtk.ButtonBoxStyle.End;
		Button buttonOk=new Button("gtk-ok");
		buttonOk.UseStock=true;
						
		buttonOk.Clicked += new EventHandler(buttonOkCliked);

		AddActionWidget(buttonOk,0);
		VBox.Add(bbox);
		
	}

	public void buttonOkCliked(object o, EventArgs args) {
		this.Hide();
		this.Destroy();
	}
}
